﻿

using FreeSql.DataAnnotations;
using Literary.Core.Common.BaseModel;

namespace Literary.Core.Model.Business.Material
{
    /// <summary>
    /// 文章类别
    /// </summary>
	[Table(Name = "ml_article_category")]
    public class ArticleCategoryEntity : EntityFull, ITenant
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [Column(Position = -10, CanUpdate = false)]
        public long? TenantId { get; set; }

        /// <summary>
        /// 父级节点
        /// </summary>
        public long ParentId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Column(StringLength = 200)]
        public string Name { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}
